added split method for splitting strings