Removing extraneous values from the surface tag.