Added rtrim option to File