string concatenate helper function