Removing unused import and using format instead of concat operator