Replace all occurrence of the given pattern to ‘X’