Fix Bugs for findFilesByMetadata

tolower does not exist. It is just "lower"
use escapedValue['Value'] instead of escapedValue['Value']['Value'], which the assignment did.