This substr condition was useless.