added possibility to define trim borders as strings