Stripping trailing spaces on java, python files