Optimised code for determining strings for item views