make a trim slash function
Refactor a couple tests
params.Get does not index out of range