take line break as plus operator
throw exception if there is line break at end of input string