Replace call to trim! with strip!

There was an errant call to trim! which doesn't exist in ruby. I believe what you meant was strip!. Regardless, I can't get image alt attributes to work, although an exception isn't thrown anymore when using them.