code optimization: avoid regex engine...

... as this is much more expensive than using split