BF: use string replace rather than re.sub