Fix deprecated issue and erroneous tab character