Fix isCAseSensitive and isWholeWord