Teleport command with string.find()

Is there a way to make it so that I can warp to the crystal warp by just saying -warp crys? Ignoring capital letters and spaces? Right now I have to type out the whole thing case sensitive (-warp Crystal). I have a general idea that string.find() or string.match() can maybe be used, but I’d need to see an example to learn… Any tips and recommendations would be extremely appreciated!

image

--//Services\\--
local repStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

--//Assets\\--
local modules = repStorage.Modules

--//Ranks\\--
local ranks = modules.Ranks
local admins = require(ranks.Admins)

--//Workspace\\--
local space = game.Workspace
local warps = space.warps

Players.PlayerAdded:Connect(function(plr)
	local permCheck = table.find(admins, plr.Name)

	plr.Chatted:Connect(function(msg)
		local prefix = "-"

		local char = plr.Character or plr.CharacterAdded:Wait()
		local humRoot = char.HumanoidRootPart

		local capSplit = string.split(msg," ")
		msg = string.lower(msg)
		local split = string.split(msg," ")

		if permCheck then

			--//Teleport Command\\-- [C1]
			if split[1] == prefix..string.lower("tp") or split[1] == prefix..string.lower("warp") then			
				if warps:FindFirstChild(capSplit[2]) then
					humRoot.CFrame = warps[capSplit[2]].CFrame
				end
			
			end	

		end

	end)

end)
local myString = "Something"
local inputString = "som"

if string.find(string.lower(myString), string.lower(inputString)) then
   print("continue with code")
end

this should direct you in the right way to fix your issue