Refactored to use String.format to improve readablity.