Scala's splitting strings by character function discards trailing empty strings. For example "1,2,3,,,".split(',') results in Array("1", "2", "3").
Is there a built-in method to split strings by character in Scala which keeps those, so that the result would be Array("1", "2", "3", "", "", "").