fixing garbage return character input