Fix syntax error on to_s implementation