fixed error with string and nonetype concatination