vineet: fixed bug in removeNode - returning empty string