Creates a new Component based on a string.
The string used to create Component
The newly created Component based on str.
str