local p = {} function p.main( frame ) return mw.ustring.gsub( "one (two) (three)", "%s+%b()$", "" ) end return p