Modified toString to change if value is set