Added function to convert string to int, started IR