Fixed style
Fixed typo in type()
Moved tonumber() code in  separate function lua_tonumber()
Fixed base argument equality check in lua_tonumber()
Fixed equality checks in string.gmatch() and string.match()
Added support for g and G format in string.format()
Fixed wrong behavior of o, x and X formats with negatives values in string.format()
Improved %p pattern in lua_pattern_to_regex(), made not supported pattern to call not_supported()
Improved regexes to detect use of the hyphen quantifier in lua_pattern_to_regex()
Added get_balanced_match() function + use in string.find()
Made patterns not composed only of one balanced pattern unsupported
Added support for balanced match in string.gsub()
Added support for balanced match in string.match()
Improved string.find() : now returns the correct indexes as well as the captured chunks (if any)
Fixed get_balanced_match() when there is more startChar than endChar or one or more endChar before the first startChar
Added support for balanced match in string.gmatch()
Made capture index in patterns not supported
Improved string.find() : added use of lua_tonumber() on index argument, fixed plain argument condition
Fixed missing bit in string.gmatch()
Improved string.gsub() : added use of lua_tonumber() fo n argument + changed returned value of processMath()