Refactored the overload solution

Trailing whitespace detected.