substr now should work