removed new line in getInput()