Added a short splitBy function to split string by string