I used formatted string like this on python screen window
screen.title(f"{" " * 100} 'My title'")
Simple I create a space and multiplying by let's say by 100 will give 100 spaces rather than hitting spacebar 100 time