add a string bean factory