Attribute.insertInput method wasn't working properly

I updated the insertInput method to work like it's described in the docstring (with a little update to the docstring itself)