String Manipulation Python Problems Leetcode