Remove unnecessary calls to getString()