replace erb with format