Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
str has assigned as an empty string in the first line of code, and it won't go in to the for loop when 1 <= 0. So it'll directly return ""
Directly from the description:
beast and dish may contain hyphens and spaces, but these will not appear at the beginning or end of the string.
Use spoiler flag next time please, your post was visible in the homepage discourse.