Addes startswith() , fixed a malloc 

The malloc , malloced more than it should due to a missing parenthesis