Converts a Component to a string.
The Component to be converted
The string representation of Component.