Fix string library functions

string.mfind(), string.mmatch, and string.mgsub() compared the array index to the string instead of the pattern.