Fix issue caused by using standard string split ignoring empty strings.