Simplified version using string replace & tuple.