def validate_plurals(plurals):
    """
    Removes trailing new lines from the values
    """
    validated = {}
    for key, value in plurals.items():
        validated[key] = [plural.rstrip("\n\r") for plural in value]
    return validated