# your code goes here
# String Functions in Python

# Sample string
s = " Hello, World! 123 "

# Basic String Operations
print("Original String:", s)
print("Length:", len(s))  # Length of the string
print("Uppercase:", s.upper())  # Convert to uppercase
print("Lowercase:", s.lower())  # Convert to lowercase
print("Title Case:", s.title())  # Convert to title case
print("Swap Case:", s.swapcase())  # Swap uppercase/lowercase
print("Capitalized:", s.capitalize())  # Capitalize first letter

# Stripping whitespaces
print("Stripped:", s.strip())  # Remove leading and trailing spaces
print("Left Stripped:", s.lstrip())  # Remove leading spaces
print("Right Stripped:", s.rstrip())  # Remove trailing spaces

# Searching in strings
print("Find 'World':", s.find("World"))  # Find substring index
print("Index of 'o':", s.index("o"))  # Get first occurrence index
print("Count of 'l':", s.count("l"))  # Count occurrences

# String Checks
print("Starts with ' Hello':", s.startswith(" Hello"))  # Check start
print("Ends with '123 ':", s.endswith("123 "))  # Check end
print("Is Alphanumeric:", s.isalnum())  # Check if alphanumeric
print("Is Alphabetic:", s.isalpha())  # Check if only alphabets
print("Is Numeric:", s.isdigit())  # Check if only digits
print("Is Lowercase:", s.islower())  # Check if all lowercase
print("Is Uppercase:", s.isupper())  # Check if all uppercase
print("Is Title:", s.istitle())  # Check if title case
print("Is Space:", s.isspace())  # Check if only spaces