Fixing substr, should be 0 and not 1.