removed strings which ends with newlines from accept in Num