Added substr to list of standard functions