Fix to_s to not output to console