string_split function

Splits a character string wrt a pattern