bot/script: add strings.scan function