Change tags to array