Fix substring and remove unecessary Take node

To show you how the broken substring could be fixed and that Take wasn't necessary.