Extracts numbers from text input