compare length: remove unused string, add view