TRIM(DESC) should be tested as an alias for TRIM(BOTH ' ' FROM DESC).