merge three char arrays