We developers always think of string as an array of chars and function that applies to arrays should apply to strings including index-of, size...etc.