bug fix Factory::createFromString to handle empty string
typo fix Documentation