on second thought, keep trimLeading for backwards compatibility