adding const qualifier to char*