Using String#startsWith was apparently to early