solved JS String task 2