modify, to be a module, return a list of finding  substring position