Regex Replace Characters In String Python Functions