Changing customString to attributes