Alternative to String.split