Added split method to string class