handle other single char case & correct starting index logic to 0 instead of 1