add const modifier to character pointers