Regex Replace Part Of String Python Exercises Hackerrank Problem