Regular expression instead of naive strsplit