updated monospace text formatter