Remove substr method