few prints and optimized memory in StrAn()