return headers in string array instead of concatenated string