I recently came across this question which was interesting¹ but pretty poorly presented. If you take a look, make sure to view the original rather than the one that has benefited from at least one non-OP edit and note that enough tech-tags were added to nominate this for the 'throw-crap-at-a-wall-to-see-what-sticks' award.
I created an answer but left it as a draft. I left a comment as a nudge for the OP to improve the question with some original effort but alas no improvement(s) to the original question came from the OP and the question has so far received four close votes and seems abandoned.
As I am left with my draft response I've cleaned up the question and reposted it as my own question² complete with my response from my original draft. For kicks and giggles, I plan to leave it for a few days then post a bounty and award it to the best solution to the second part of the question.
Is this an appropriate re-purposing or recycling of bad questions? Should I mark the original question as a duplicate of my own?
¹ Yeah I know this particular question has been asked and answered at least a dozen times but TBH I can rewrite the question and provide an answer in less time than it takes to find a duplicate using stackoverflow's search engine.
² Yeah I know that even my revised question asks two specific questions (if starts with and if contains) but they are very closely related and the important part of the solution is common to both.