Handle beginning of line at the start of the input