removes unneded ^ in formatter