Used regex for blank space validation