Changed char parameter to const