Fixed regex when splitting text