Refactored tag -> string