Removing unnecessary string stored on prototype