extracted trim() and findAndReplace() to utils.{cpp|h}
#6325
+105
−30
trim() and findAndReplace() to utils.{cpp|h}
#6325