Boolean valueOf expects "true" or "false", so compare string