Smarter String vs object handling