remove square brackets from enitre string instead of just at beginning and end of string