I want to remove duplicated words inside brackets and replace them with "S" + word. The words can be anything - including special characters, decimals, time-period