String problems in a single class