von Dyck word reducer

the {5,4} reflection group. generators a, b with
a5 = b4 = (ab)2 = 1  ·  A / B = inverses.
type a word, watch it reduce one rewrite at a time to the shortest form.