changed string.split to be more php like