Fix #1664 - empty classed string.

The regex used for split was returning [""] for the input "", rather than [].