cleanup ras strings and arrays