Update atomhandling.py

Simplified string creation