You can just do a trim on the result, like so:

    val subowners = job.owner.split(",").map( s => s.trim )

The above code may or may not be correct.