Correction to the improved Splitter

Fixed a bug that returned the class name instead of the input string in
the Splitter.