Ignore regex error inside trim call (#51)