You are facing this issue because you are using the replace method incorrectly.
When you call the replace method on a string in python you get a new string with the contents replaced as specified in the method call. You are not storing the modified string but are just using the unmodified string.
You can do it like this:
name="abc000"
modified_name=name.replace(“000”,””)
print(modified_name)
You can use this video to learn more about python strings and it's methods:
Interested to learn more about Python? Come & join our Python course