match char reports end of input error