Text formatting fixes