Dialogue

Hi I've been writing for a while but mostly just for fun but I have a few stories id really like to edit through. I'm not sure about editing really so I let someone look over like a page of my writing and they said I shouldn't have my character talk like "I...i ...it.. doesn't matter." Is this wrong if I'm trying to show his hesitant or nervous?