Removing attribute from string