Switched to string concatenation instead of method calls for better performance