refactors getProfileChars method