Use "attributes()" instead of "assign_attributes()"

assign_attributes() is only available in some versions of rails, and is not available in rails 3.0.
Trim the strings when matching recordings and rooms

The value attributed when a recording is created will never
contain spaces at the beginning and at the end, so we can
safely remove them.