trimming spaces on tags