use blank? method instead of to_s.empty?