Update colnames assignment to work with character vectors