why would result not be a string? i would just do `var result;` here and `result = ` instead of `+=` down below