bug fix; made more safe; work on string