fixing bug in email link extraction picking up extra characters

fixing small bugs as i find them learning the code :)