function interpret(input) {
    return typeof input === 'string' ? input.replace(trim, '').split(whitespace) : input;
}
Adapted from dominus v6.0.1
https://github.com/bevacqua/dominus/blob/master/src/classes.js