Made changes to the char parameter types to correctly reflect their const status.