string = "[Message]" string = string.replace("[", "")#Removes all [ string = string.replace("]", "")#Removes all ] print(string)