Adding requirements on input strings