Fixed parseString to work properly with the case where an empty list is passed in.