Change syntax of typeof and check against string.