Fixes startsWith method.