We constantly urge people to reduce code to the minimum needed to expose the problem, and to put minimal example data sources in the code example rather than leaving them in external data sources. If you had tried to do so, you would have discovered that the only way for list(somestring) to be [] is when somestring == ''.