Fixed split to allow empty parts in beginning and end of string