Renamed the generated substr() method to getValue(), to avoid confusion with the native substr().