Fixed sstrlen overcount bug and adjusted usage