How remove piece of word?

Hello. I’m writing crafting system, in which crafting name can contain things like “Any” or “Same”. For example crafting “SameStoneBrick” using Basalt you will receive BasaltBrick.

But I’m have problem - for creation crafting slot button, I need get Model for ViewportFrame, which have name “StoneBrick”, not “SameStoneBrick”.

local OriginalName = “SameStoneBrick”
local WhatNeeded = “StoneBrick”

How I can remove “Any” or “Same” from string?

local string1 = string.gsub("AnyStoneBrick", "Any", "")
local string2 = string.gsub("SameStoneBrick", "Same", "")