parse record names properly