added prepare function and matching test string to these formats