Use strings::trim() and strings::split in BookReader.