Added options.
Fixed small structural differences.
Check keyPath or options after schema and fn.
Added trim option.