Adding homework on JavaScript Strings