remove weird regex in formatting string