Trim some whitespace
Add a test to the isFunction helper