Testing some performance of string.replace and re.sub For single word replacement string.replace is much faster