What's with the capitalized argument names? Also, maybe a `string.gmatch` based implementation would be faster?