Javascript String Match Regex Python Practice Leetcode 1508 Yellow