Remove trailing white spaces and useless imports