remove odd characters surrounding strings