Refactoring (using array+join instead concatenating strings with +)