Changing string const to class method.