def _strip_whitespace(text_content: str) -> str:
    """Return text_content with leading and trailing whitespace removed
    """
    output_content: str = str(text_content)
    if text_content is not None and len(text_content) > 0:
        output_content = text_content.strip()
    return output_content