How to working the center method of a python str?