Pass strings and vectors by const reference

Increase const correctness