Regex Get Digits From String Python Replace Substring With Another String