[ocaml] remove String.trim codes; ignore .*.swp