Function getCharacters