corrected trailing blanks solution
fixed