Fix class name

Fixes a problem where removeClassName removed too many classes.

If you removed the className 'whatever' from an element which had only 'ink-whatever' the element's className would become 'ink-'. Fixed with clever matching

Credit to @anmo for the fix and report.