Prune some unnecessary strings