Even if the input is "boy" it will still return "Kai"

Please remember to post your actual code, in code tags.

Have you checked your line ending yet?