begins_with string version fix