Don't quote value when value.eql? 'NULL' and on only when it equal NULL. If user try to input anything else, value will be quoted.