rewrite stripStr