Rename eraseAttribute to removeAttribute
Code cleanup