Shouldn't String.split("x") return 0 items (=null) if input is empty (=.length()==0), as there is neither a matching pattern "x", nor some trailing chars and trailing empty strings should be discarded? Thanks, -Ulf