added dots to allowed characters
print method