solved JS String task 6