closes #2379

also fixed a bug where tags with 0 topics were showing up in /tags
previous commit doesnt show unusud tags in admin
trim tag after substr

this prevents spaces in the middle of the tag from being added to the db
closes #1990
check err
closes #2401