The input may not end with a newline always