Fix bug number finding in string