What about `@name.sub(/:\Z/,'')`