Given a string, find the first integer inside and return its value as an integer. Return 0 if there is no integer inside.