Add ability to customize available domains
Move core implementation to detect allowed domains to the utility module
Fix typo

String#strip =>
String#trim