Updated line pattern to work with utf