def component_type_to_singular(component_type):
    """
    Converts a component_type to its singular form
    :param component_type: a string representing the component type to be made
    singular.
    :return: a string containing the singular version of the component_type
    """
    return component_type.strip().rstrip('s')
