If the project is still maintained, the deprecated function `.trim_right` could be replaced by `trim_end`.