Add get letters function