splitAndTrim accepts also a Pattern as regexp