use +sub+ instead of +gsub+