Fixed issue with using instanceof instead of typeof for string
release 0.5.11