added weights to string detection to minimize their priority vs regex