String checks.

All the strings features.

//cc @fengmk2 @dead-horse 
`isFunction(attr) {` spaces are no need