I have a project that needs the same functionality as lstrip -d, except that the input and output need to be strings rather than a file and stdout respectively. Would this be hard to do? Any help would be appreciated. Thanks.