extract formatted nsstring statements into reusable method