Inverting characters