Converting first row to 'th' elements