I don't think the acid should be a problem. If you are using NaOH or LiOH, you will be generating a salt. I see two options. You could just neutralize the base, 10 mL of 1N NaOH will require 10 mL of 1N acid. The other is to use an excess of a volatile (weak) acid and evaporate off the excess. However, you still must remove the salt of the acid. Without the compound being hydrolyzed, I don't know if this would be a problem or not. You could also use a carboxylic acid ion exchange column. The sodium or lithium ions would be retained on the column.