Hey guys, can you help me find out what is wrong with the code below?
I tried everything that I could think of and read other topics related with this challenge, but couldn’t find a satisfactory answer to why my code isn’t accepted even though it return the messages as expected.
Take a closer look at the arr after the second time str is split. There’s additional blank element at the end, which somehow makes into the result string.