Add const qualifier to string input