Replace substringing of number string with a Regex.