For some reason my code just won't terminate when inputting null string I don't think there is an infinite loop? Please help!