probably it would be more efficient to use a RegExp here