Consistent use of the `isString` function.

cc: @staugaard @jamesarosen @vcekov