I have a string value printing in multiple lines. I used three single/double quotes for assigning string value
artist = """
Mariah
Carey
"""
name = 'My all'
realeased_year = 1997
genre = 'Latin'
duration_seconds = 231
print(f'{artist}(full name has {len(artist.strip().replace(" ", ""))} characters) and her song \'{name}\' was released in {realeased_year + 1}')
It outputs wrong number of characters: 12
However, when I assign a string value in one line like
artist = 'Mariah Carey'
I have correct number of characters 11

Is it possible to remove all white spaces (leading, middle and trailing) from multi line string value without using regular expressions