Don't use static substr() method in a non-static context