Slight optimization to avoid concatenating empty strings