Stop if there is no more character ahead