Added minor change to allow for single line input when user enters without echo