Extracted method removeLeadingWhiteSpaces.