Python Re Replace First Occurrence Leetcode 75