deleting trailing whitespaces throughout code