A simple code to split a given string