Improve max_string and reformat_phone solutions