string.trim(), then scan linarly, AC