Purge spaces on string match