Fixed a bug in the String regex