Add function that converts tring to signed integer