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

If I tell you that I don't think there is anything wrong with your code (apart from the missing code tags), WILL YOU PLEASE TELL ME WHAT THE LINE-ENDING CONTROL ON THE SERIAL MONITOR IS SET TO?