As was mentioned above, once you write var=...
then the expression has been evaluated and too late to do anything about it.
If you still want to have the form of the expression be there without the Hold
showing up. You can use Defer
like this
var = Defer[3 x^3 + 6 x^3 + a 6 x^3]
(*3 x^3 + 6 x^3 + a 6 x^3*)
Now you can do var /. (6 x^3 -> 0)
then to remove the defer, replace it with Identity
![enter image description here](http://community.wolfram.com//c/portal/getImageAttachment?filename=8240Untitled.png&userId=89105)
Maybe there is a way to pass it as characters.
I would think that using strings to Manipulate algebraic expressions is not the right way to go about these things and defeats the purpose of having symbolic computation.