Refactored string formating