I always think (typeof x == 'string') looks like it should always evaluate to 'boolean', even though I know it doesn't. Fixed now.