Hi Binay. Welcome to the Ranch!
What were you expecting it to print out?
\w means "any
word character" (letter, digit, underscore). So what you're doing there is roughly the equivalent of splitting the
string ",, ,, , #" on commas. Can you see now why it would include empty strings?