Switch Statement quits working

If you add this code in a 'switch' statement, it quits working. Any idea of why?

dtostrf(weight, 4, 1, s);
String str(s);
str = "W: " + str;
Serial.println(str);

Probably something to do with the code you didn't post.