-- \0 is a "null terminator", basically declares the end of a string
-- declare the original team
local Team = "AdminTeam\0"
-- substitute all null terminators with nothing
local Parsed = string.gsub(Team, "%z", "")
-- check
print(Team == "AdminTeam") --> false
print(Parsed == "AdminTeam") --> true