Declaration of setString should not be static.