String JavaScript exercised