use const char ptr instead of non-const in string literal parameters