Rename isString method, refactor tests