added rm_white tests and fixed some regexes to be more accurate