solved beautifull strings task