Replace substr (not standardized) with substring (standardized).