inherit text from string