updated split pattern. Added test for it