Why is this string empty?