delete non .c files from string perm