Osea quieres decir, sustituir el empty por trim ??
Si hago eso me salta el siguiente error:
Cita: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bus='0' AND cpu='0' AND motherboard='0'' at line 1