trimming and ignoring case

for notes and category names