This looks very promising, is it possible to expand it so that it returns an array instead? e.g. thisismydomain -> this is my domain this is my do main his is my domain his is my do main