the two are defined nearly the same way, chr2ind does not accept a char
something is not right with ind2chr, it returns the index given as an arg
julia> (ind2chr(astr,2) , chr2ind(astr,'s'))
These functions convert between byte indexes and character indexes for multi-byte encodings like UTF-8. For ASCII strings they are the identity function.