substring with concatenation