Strip value if it is a string, before attempting to assign it to the model's values.
# File lib/sequel/plugins/string_stripper.rb, line 20 def []=(k, v) v.is_a?(String) ? super(k, v.strip) : super end