update

delete previous string operation. Add charactor counter and memory
allocation for tmporary directories. And add new string operation.