Refrain from performing substr calculation twice inside loadClass0()