Added trimming to merge SQL query
Merge pull request #744 from CartoDB/CDB-3782

Added trimming to merge SQL query