Move all text manipulation into textcommands