Optimised parseLineString