Refactoring of concat error