On how to select the right tool for a given task

its perfectly all right to use sed on strings(as well as files of course).