String checking for add and subtract methods