Regexp-less String splitting