solved JS String task 3