Implemented strings for templates

You want to avoid getting member again and again. This is a bad idea in general: the compiler would have to prove the value wasn't changed by something else, which it usually cannot. This is not a big deal here, but as a general rule of thumb, this is good practice.