added function to null string