Prints before/after state for supported commands in toString()