Fixed typeof comparison to match against string.