Add charCodeAt
Swap arguments in indexOf funcs for better style